package lazy.libs.utils;

import android.app.Activity;
import android.app.Service;
import android.telephony.TelephonyManager;

public class ActivityUtils {
	/**
	 * Sim卡检测
	 */
	public static boolean checkIsSimReady(Activity activity) {
		TelephonyManager mTelephonyManager = (TelephonyManager) activity.getSystemService(Service.TELEPHONY_SERVICE);
		if (mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_READY) {
			return false;
		} else {
			return true;
		}
	}
}
